﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TaskFramework
{
    public delegate void BatchEventHandler(BatchEvent e);

    public class BatchEvent
    {
        private List<Exception> _exceptions;

        public BatchEvent(int batchId)
        {
            BatchId = batchId;
            BatchCompleted = true;
            _exceptions = new List<Exception>(0);
        }

        public bool BatchCompleted { get; private set; }

        public IList<Exception> Exceptions
        {
            get { return _exceptions.AsReadOnly(); }
        }

        public int BatchId { get; private set; }
    }
}
